package io.hepu.robotize.http;

import java.util.Map;

public interface IHttpService<T> {

    HttpResult<T> doGet(String url) throws Exception;

    HttpResult<T> doGet(String url, Map<String, Object> parameters) throws Exception;

    HttpResult<T> doGet(String url, Map<String, Object> headers, Map<String, Object> parameters) throws Exception;

    HttpResult<T> doPost(String url) throws Exception;

    HttpResult<T> doPost(String url, Map<String, Object> parameters) throws Exception;

    HttpResult<T> doPost(String url, String jsonParameters) throws Exception;

    HttpResult<T> doPost(String url, Map<String, Object> headers, Map<String, Object> parameters) throws Exception;

    HttpResult<T> doPost(String url, Map<String, Object> headers, String jsonParameters) throws Exception;

}
